<extend name="Public/common" />
<block name="body">
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>订单管理</h3>
      <ul class="tab-base">
        <li><a href="JavaScript:void(0);" class="current"><span>列表</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form method="get" action="{:U()}" name="form_search">
    <table class="tb-type1 noborder search">
      <tbody>
        <tr>
          <th><label for="keyword">订单号或会员昵称或OPENID</label></th>
          <td><input type="text" value="{$keyword}" name="keyword" id="keyword" class="txt"></td>
          <td>
          	<a href="javascript:document.form_search.submit();" class="btn-search " title="查询">&nbsp;</a>
            <notempty name="keyword">
            <a href="{:U('index')}" class="btns " title="撤销检索"><span>撤销检索</span></a>
            </notempty>
          </td>
        </tr>
      </tbody>
    </table>
  </form>
<table class="table tb-type2" id="prompt">
	<tbody>
		<tr class="space odd">
			<th colspan="12"><div class="title"><h5>操作提示</h5><span class="arrow"></span></div></th>
		</tr>
		<tr>
			<td><ul>
    <li>购买会员卡记录</li>
				</ul></td>
		</tr>
	</tbody>
</table>
	<form method="post" id="form1">
    <table class="table tb-type2">
      <thead>
        <tr class="thead">
          <th>订单编号</th>
          <th class="align-center">会员</th>
          <th class="w108 align-center">下单时间</th>
          <th class="w84 align-center">支付状态</th>
          <th class="w120 align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="list">
        <volist name="list" id="vo">
        <tr class="hover">
          <td>{$vo['order_sn']}</td>
          <td class="align-center">{$vo['openid']}({$vo['nickname']})</td>
          <td class="align-center">{$vo['create_time']|time_format}</td>
          <td class="align-center"><eq name="vo.pay_state" value="1">已支付<else />未支付</eq></td>
          <td class="align-center">
          	<!--<a href="{:U('view?id='.$vo['order_id'])}">查看</a>-->
          	<!--<a href="{:U('edit?id='.$vo['order_id'])}">更改状态</a>-->
          </td>
        </tr>
        </volist>
        <else />
        <tr class="no_data">
          <td colspan="10">没有符合条件的记录</td>
        </tr>
        </notempty>
      </tbody>
      <tfoot>
        <tr class="tfoot">
        <notempty name="page">
          <td colspan="16">
            <div class="pagination"> {$page} </div>
          </td>
         <else />  
          <td colspan="16"></td>
         </notempty>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
</block>